package com.fc.advbox.service;

import com.alibaba.fastjson.JSONObject;
import com.fc.advbox.dto.contract.ContractTotalInfo;
import com.fc.advbox.entity.ContractEntity;
import com.fc.advbox.entity.EquipmentEntity;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * IContractService
 *
 * @author Gary.Jiang
 * @date 2018/6/22.15:51
 */
public interface IContractService extends BaseService<ContractEntity> {
//    ContractEntity queryObject(Long contractId);
//
//    void save(ContractEntity entity);
//
//    void update(ContractEntity entity);
//
//    void delete(Long contractId);
//
//    List<ContractEntity> queryList(Map<String, Object> map);
//
//    int queryTotal(Map<String, Object> map);

    void confirmContract(Long contractId);

    void terminateContract(Long contractId, Date terminateDate);

    List<ContractEntity> queryContractsByEquipmentId(JSONObject params);

    ContractTotalInfo getContractTotalInfoByOrgId(JSONObject params);
}
